package com.qd.pay.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.math.BigDecimal;


@Data
@Accessors(chain = true)
public class OrderRefundWxReportDTO {

    private String rid;

    @Size(max = 64, message = "outTradeNo长度不能超过{max}位")
    private String outTradeNo;

    private BigDecimal totalFee;

    private BigDecimal settlementTotalFee;

    private String feeType;

    private Integer cashFee;

    private Integer refundCount;

    @Size(max = 32, message = "refundId长度不能超过{max}位")
    private String refundId;

    @Size(max = 16, message = "refundChannel长度不能超过{max}位")
    private String refundChannel;

    private Integer settlementRefundFee;

    @Size(max = 8, message = "couponType长度不能超过{max}位")
    private String couponType;

    private Integer couponRefundFee;

    private Integer couponRefundCount;

    @Size(max = 20, message = "couponRefundId长度不能超过{max}位")
    private String couponRefundId;

    private Integer couponRefundFeeOne;

    @Size(max = 16, message = "refundStatus长度不能超过{max}位")
    private String refundStatus;

    @Size(max = 30, message = "refundAccount长度不能超过{max}位")
    private String refundAccount;

    private Integer refundNo;

    @Size(max = 50, message = "orderId长度不能超过{max}位")
    private String orderId;

    public void freeData() {
        this.rid = null;
        this.outTradeNo = null;
        this.totalFee = null;
        this.settlementTotalFee = null;
        this.feeType = null;
        this.cashFee = null;
        this.refundCount = null;
        this.refundId = null;
        this.refundChannel = null;
        this.settlementRefundFee = null;
        this.couponType = null;
        this.couponRefundFee = null;
        this.couponRefundCount = null;
        this.couponRefundId = null;
        this.couponRefundFeeOne = null;
        this.refundStatus = null;
        this.refundAccount = null;
        this.refundNo = null;
        this.orderId = null;
    }
}
